package com.autumn.config.entities;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.autumn.mybatis.mapper.annotation.TableOrderBy;

/**
 * 应用数据源
 * 
 * @author 老码农
 *         <p>
 *         Description
 *         </p>
 * @date 2017-12-30 22:01:00
 */
@Entity
@Table(name = "app_info_data_source")
@TableOrderBy(value = "appId ASC,sortId ASC")
public class ApplicationDataSource extends AbstractConfigureModifiedGmt {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4506099176495368486L;
	private Long appId;
	private Long targetAppId;
	private Long connectionId;

	/**
	 * 获取应用Id
	 * 
	 * @return
	 */
	public Long getAppId() {
		return appId;
	}

	/**
	 * 设置应用Id
	 * 
	 * @param appId
	 *            应用Id
	 */
	public void setAppId(Long appId) {
		this.appId = appId;
	}

	/**
	 * 获取目标应用Id
	 * 
	 * @return
	 */
	public Long getTargetAppId() {
		return targetAppId;
	}

	/**
	 * 设置目标应用id
	 * 
	 * @param targetAppId
	 *            目标应用id
	 */
	public void setTargetAppId(Long targetAppId) {
		this.targetAppId = targetAppId;
	}

	/**
	 * 获取连接Id
	 * 
	 * @return
	 */
	public Long getConnectionId() {
		return connectionId;
	}

	/**
	 * 设置连接Id
	 * 
	 * @param connectionId
	 *            连接Id
	 */
	public void setConnectionId(Long connectionId) {
		this.connectionId = connectionId;
	}
}
